﻿using System;
using System.Windows.Forms;
using System.Xml;

namespace DotDiff.TestInterface
{
    public partial class ViewXml : Form
    {
        private XmlDocument doc;
       


        public ViewXml(XmlDocument doc) 
        {
            InitializeComponent();
            this.doc = doc;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void ViewXml_Load(object sender, EventArgs e)
        {
            //InitializeComponent();
            
        }

        private void ViewXml_Shown(object sender, EventArgs e)
        {
            ntbXml.Text = XmlFunctions.WriteToString(doc);
        }
    }
}
